package cn.gemiman.daoyi.module.cms.controller.admin.blogtalk.vo;

import cn.gemiman.daoyi.module.cms.vo.WithLikeBaseVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.gemiman.daoyi.framework.excel.core.annotations.DictFormat;
import cn.gemiman.daoyi.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 说说 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BlogTalkRespVO extends WithLikeBaseVO<Long> {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6518")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "用户类型", converter = DictConvert.class)
    @DictFormat("user_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer userType;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "23520")
    @ExcelProperty("用户编号")
    private Long userId;

    @Schema(description = "用户昵称", example = "道一")
    @ExcelProperty("用户昵称")
    private String userNickname;

    @Schema(description = "用户头像")
    @ExcelProperty("用户头像")
    private String userAvatar;

    @Schema(description = "站点编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8099")
    @ExcelProperty("站点编号")
    private Long appSiteId;

    @Schema(description = "站点标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "21134")
    @ExcelProperty("站点标识")
    private String appId;

    @Schema(description = "图片")
    @ExcelProperty("图片")
    private List<String> talkImgList;

    @Schema(description = "视频")
    @ExcelProperty("视频")
    private String talkVideo;

    @Schema(description = "内容")
    @ExcelProperty("内容")
    private String content;

    @Schema(description = "@谁")
    @ExcelProperty("@谁")
    private String referTo;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "审核状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "审核状态", converter = DictConvert.class)
    @DictFormat("bpm_process_instance_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer approveStatus;

    @Schema(description = "排序")
    @ExcelProperty("排序")
    private Long sort;

    @Schema(description = "访问次数")
    @ExcelProperty("访问次数")
    private Long viewTimes;

    @Schema(description = "点赞数量")
    @ExcelProperty("点赞数量")
    private Long thumbsUpTimes;

    @Schema(description = "创建者ip")
    @ExcelProperty("创建者ip")
    private String creatorIp;

    @Schema(description = "创建者城市")
    @ExcelProperty("创建者城市")
    private String creatorCity;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
